//
//  AppManager.h
//  ImGuider
//
//  Created by llt on 2017/4/12.
//  Copyright © 2017年 imguider. All rights reserved.
//

// 获取语言
#define MYLocalizedString(key, comment) \
[[AppManager sharedManager] get:(key) alter:(comment)]

#import <Foundation/Foundation.h>
#import "AFNetworkReachabilityManager.h"
#import "VersionModel.h"
#import "OperationObject.h"

@class MainViewController;

typedef NS_ENUM(NSUInteger, ClickBtnType) {
    Tractfic = 1,// 导航
    Intro, // 简介
    Play, // 播放
    PlayWithLine, // 播放并画线
    Select,// 选中
};

@interface AppManager : NSObject


+ (instancetype)sharedManager;

@property (nonatomic, copy) NSString *baseURLStr;

@property (nonatomic, strong) VersionModel *version;

@property (nonatomic, copy) NSString *cityver, *countryver;


@property (nonatomic, strong) NSDictionary *recomendParams;
@property (nonatomic, strong) NSNumber *lastCityID;


@property (nonatomic) NSString *currentCountryCode;

//播放页面 参数
@property (nonatomic, copy)NSString *lineid;

@property (nonatomic) AFNetworkReachabilityStatus networkState;
@property (nonatomic, copy) NSString *language;

@property (nonatomic, copy)NSString *currentPointID;

@property (nonatomic) BOOL allowWhenPlay; // 播放时不询问
@property (nonatomic) BOOL allowWhenDownload;// 下载时不询问
@property (nonatomic) BOOL isOffReceiverWhenListen;// 自动切换听筒模式
@property (nonatomic) BOOL allPlayWhenListen;// 连续播放
@property (nonatomic) BOOL automaticPlay;//自动播放

@property (nonatomic,strong) NSArray * countryList;//按国家分组显示各个城市  避免改原来数据库逻辑   存成沙盒结构
//@property (nonatomic) BOOL isCNY;// 是否显示人民币


- (NSString *)get:(NSString *)key alter:(NSString *)alternate;

@property (nonatomic, weak) MainViewController *manVC;

@property (nonatomic, strong) OperationObject *opObj;

@end
